package com.demo.result;

import com.demo.common.result.Result;
import org.slf4j.MDC;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {

    @GetMapping("test1")
    public Result run1() {
        return Result.success(MDC.get("traceId"));
    }

}
